package com.douyin.video.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import lombok.Data;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 *
 * 抖音视频
 *
 *
 * @author djianfeng
 * @since 2018-08-27
 */
@Data
@TableName("douyin_video")
public class DouyinVideo extends Model<DouyinVideo> {

    private static final long serialVersionUID = 1L;

    /**
     * id主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
         * 用户id
     */
    @TableField("user_id")
    private Long userId;
    
    /**
     * 视频标题
     */
    @TableField("video_title")
    private String videoTitle;

    /**
     * 原链接
     */
    @TableField("url")
    private String url;
    
    /**
     * 除去水印链接
     */
    @TableField("watermark_url")
    private String watermarkUrl;
    
    /**
         * 去水印服务器链接
     */
    @TableField("watermark_video")
    private String watermarkVideo;
    
    /**
     * 视频链接
     */
    @TableField("video_url")
    private String videoUrl;

    /**
     * 作者抖音id
     */
    @TableField("author_id")
    private String authorId;

    /**
     * 作者头像
     */
    @TableField("author_head_img_url")
    private String authorHeadImgUrl;

    /**
     * 作者名称
     */
    @TableField("author_name")
    private String authorName;

    /**
     * 扩展信息（json数据）
     */
    @TableField("extend_info")
    private String extendInfo;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private String createTime;



    @Override
    protected Serializable pkVal() {
        return this.id;
    }



	@Override
	public String toString() {
		return "DouyinVideo [id=" + id + ", userId=" + userId + ", videoTitle=" + videoTitle + ", url=" + url
				+ ", watermarkUrl=" + watermarkUrl + ", watermarkVideo=" + watermarkVideo + ", videoUrl=" + videoUrl
				+ ", authorId=" + authorId + ", authorHeadImgUrl=" + authorHeadImgUrl + ", authorName=" + authorName
				+ ", extendInfo=" + extendInfo + ", createTime=" + createTime + "]";
	}

	

   
}
